package cn.store.service;

import cn.store.domain.PageModel;
import cn.store.domain.User;

import java.sql.SQLException;
import java.util.Map;

public interface UserService {

	void userRegist(User user)throws SQLException ;

	User userLogin(User user)throws SQLException;

	User userRegistcheck(String user)throws SQLException;



    PageModel findUsersWithPage(int curNum, Map<String, Object> searchWords) throws SQLException;

    User findUserById(String id) throws SQLException;

    void updateUser(User user) throws SQLException;

    int deleteUser(String uid) throws SQLException;
}
